package com.home766.service.impl;

import com.home766.dao.CasesDao;
import com.home766.entity.Cases;
import com.home766.service.CasesService;
import net.biz.Page;
import net.biz.Pageable;
import net.biz.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("casesServiceImpl")
@Transactional
public class CasesServiceImpl extends BaseServiceImpl<Cases,Long> implements CasesService{
	@Autowired
	private CasesDao casesDao;
	
	@Autowired
	public void setBaseDao(CasesDao casesDao) {
		super.setBaseDao(casesDao);
	}

	@Override
	public Page<Cases> getCasesList(Cases cases, Pageable pageable, String properties) {
		// TODO Auto-generated method stub
		return casesDao.getCasesList(cases, pageable,properties);
	}

	@Override
	public List<Cases> getCasesList() {
		// TODO Auto-generated method stub
		return casesDao.getCasesList();
	}

	@Override
	public Cases getCases(Long id) {
		// TODO Auto-generated method stub
		return casesDao.getCases(id);
	}

/*	@Override
	public List<DictionaryValue> getValue() {
		// TODO Auto-generated method stub
		return casesDao.getValue();
	}*/

	@Override
	public Page<Cases> getShopCasesList(Cases cases, Pageable pageable) {
		// TODO Auto-generated method stub
		return casesDao.getShopCasesList(cases, pageable);
	}
}
